/**
 * jims
 */
package com.jims.master.modules.patient.myAttention.entity;

import com.jims.master.common.persistence.DataEntity;
import com.jims.master.modules.base.user.entity.MasterBaseinfo;
import com.jims.master.modules.base.user.entity.MasterDoctorinfo;
import org.hibernate.validator.constraints.Length;

/**
 * Entity
 * @author jicunteng
 * @version 2017-05-23
 */
public class PatFollow extends DataEntity<PatFollow> {
	
	private static final long serialVersionUID = 1L;
	private String personId;		// 用户id
	private String doctorId;		// 医生id
	private String deptId;		// 部门id
	private String hospitalId;		// 医院id
	private String followFlag;		// 关注标识

	private MasterDoctorinfo masterDoctorinfo;
	/*private MasterBaseinfo masterBaseinfo;

	public MasterBaseinfo getMasterBaseinfo() {
		return masterBaseinfo;
	}

	public void setMasterDoctorinfo(MasterBaseinfo masterBaseinfo) {
		this.masterBaseinfo = masterBaseinfo;
	}*/

	public MasterDoctorinfo getMasterDoctorinfo() {
		return masterDoctorinfo;
	}

	public void setMasterDoctorinfo(MasterDoctorinfo masterDoctorinfo) {
		this.masterDoctorinfo = masterDoctorinfo;
	}

	public PatFollow() {
		super();
	}

	public PatFollow(String id){
		super(id);
	}


	@Length(min=1, max=64, message="用户id长度必须介于 1 和 64 之间")
	public String getPersonId() {
		return personId;
	}

	public void setPersonId(String personId) {
		this.personId = personId;
	}
	
	@Length(min=0, max=64, message="医生id长度必须介于 0 和 64 之间")
	public String getDoctorId() {
		return doctorId;
	}

	public void setDoctorId(String doctorId) {
		this.doctorId = doctorId;
	}
	
	@Length(min=0, max=1, message="部门id长度必须介于 0 和 1 之间")
	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}
	
	@Length(min=0, max=1, message="医院id长度必须介于 0 和 1 之间")
	public String getHospitalId() {
		return hospitalId;
	}

	public void setHospitalId(String hospitalId) {
		this.hospitalId = hospitalId;
	}
	
	@Length(min=1, max=64, message="关注标识长度必须介于 1 和 64 之间")
	public String getFollowFlag() {
		return followFlag;
	}

	public void setFollowFlag(String followFlag) {
		this.followFlag = followFlag;
	}
	
}